package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    public Set<Permission> findByRoleId(int roleId);
    public void add(Permission permission);
    public Page<Permission> findPage(String queryString);
    public Permission findById(Integer id);
    public void edit(Permission permission);
    public long findCountByPermissionId(Integer id);
    public void deleteById(Integer id);
    List<Permission> findAll();
}
